package com.javaee.ioc.annotation;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class CarBeanTest {
    public static void main(String[] args){ testCarSingleton();}

    public static void testCarSingleton(){
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("spring-config.xml");
        Car car = (Car) context.getBean("car");
        car.run();
    }
}
